package com.niiwoo.civet.trade.dto.response;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by lujing on 2018/5/12.
 */
@Data
public class InvestOrderListResponseDTO implements Serializable {

    //全部总数 
    private Integer allNum = 0;

    //正常回款数 
    private Integer normalReceivingNum = 0;

    //逾期数 
    private Integer overdueNum = 0;

    //投资中数 
    private Integer collectingNum = 0;

    //结清数 
    private Integer clearingNum = 0;

    //关闭数 
    private Integer closeNum = 0;

    //投资订单列表 
    private List<InvestOrderList> list;

    @Data
    public static class InvestOrderList implements Serializable {

        //订单ID 
        private Long orderId;

        //标的ID 
        private Long projectId;

        //投资本金 
        private BigDecimal contractAmount;

        //借款利率 
        private BigDecimal borrowRate;

        //借款期限 
        private Integer deadline;

        //借款期限单位-1月，2天 
        private Byte deadlineUnit;

        //投资日期 
        private Date investDate;

        //标的状态: 1.正常回款 2.逾期 3.投资中 4.已结清 5.已关闭 
        private Byte projectStatus;

        //查看合同 
        private String toViewContractUrl;

        //下载合同 
        private String downloadContractUrl;

    }

}
